<template>
  <div class="header">
    <div class="view">
      <a @click="$router.back(-1)"></a> {{title}}
    </div>
  </div>
</template>

<script>
export default {
  props: ['title'],
  data () {
    return {}
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.header {
  background: #0076bb;
  .view {
    width: 6.9rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    height: 0.88rem;
    line-height: 0.88rem;
    font-size: 0.36rem;
    color: #ffffff;
    text-align: center;
    a {
      width: 0.2rem;
      height: 0.88rem;
      position: absolute;
      left: 0;
      top: 0;
      background: url("./img/return_ico.png") no-repeat left center;
      background-size: 0.2rem 0.34rem;
    }
  }
}
</style>
